/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.xcxAdmin.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;
import com.jeesite.modules.xcxAdmin.entity.ZtAdmin;

/**
 * 提现
 * 
 * @author ThinkGem
 * @version 2018-04-22
 */
@Table(name = "zt_withdraw", alias = "a", columns = {
		@Column(name = "id", attrName = "id", label = "编号", isPK = true),
	
		@Column(name = "adminid", attrName = "ztAdmin.id", label = "小程序用户id"),
		@Column(name = "ispay", attrName = "ispay", label = "是否打款"),
		@Column(name = "status", attrName = "status", label = "状态"),
		@Column(name = "amount", attrName = "amount", label = "粉丝用户id"),
		
		@Column(name = "financialid", attrName = "financialid", label = "收支明细id"),
		@Column(name = "create_date", attrName = "createDate", label = "创建时间"),
		@Column(name = "pay_date", attrName = "payDate", label = "打款时间"),

}, joinTable = {
		@JoinTable(type = Type.LEFT_JOIN, entity = ZtAdmin.class, attrName = "ztAdmin", alias = "z", on = "z.id = a.adminid", columns = {
				@Column(name = "name", attrName = "name", label = "小程序名称", queryType = QueryType.LIKE),
				@Column(name = "headimgurl", label = "小程序头像", attrName = "headimgurl"), 
				@Column(name = "paycode", label = "收款碼", attrName = "paycode"), 
				@Column(name = "id", attrName = "id", label = "编号", isPK = true),
		}),
}, orderBy = "a.create_date DESC")
public class ZtWithdraw extends DataEntity<ZtWithdraw> {

	private static final long serialVersionUID = 1L;
	
	private String financialid;//收支明细id
	
	private ZtAdmin ztAdmin;//粉丝用户
	private String status;
	
	private Double amount;
	private String ispay;
	private Date payDate;
	
	@JsonIgnore
	private Date createDate;
	@JsonIgnore
	private String updateBy;
	@JsonIgnore
	private String createBy;
	@JsonIgnore
	private Date updateDate;
	
	
	
	public String getFinancialid() {
		return financialid;
	}
	public void setFinancialid(String financialid) {
		this.financialid = financialid;
	}
	public Date getPayDate() {
		return payDate;
	}
	public void setPayDate(Date payDate) {
		this.payDate = payDate;
	}
	public Double getAmount() {
		return amount;
	}
	public void setAmount(Double amount) {
		this.amount = amount;
	}
	public String getIspay() {
		return ispay;
	}
	public void setIspay(String ispay) {
		this.ispay = ispay;
	}
	public ZtAdmin getZtAdmin() {
		return ztAdmin;
	}
	public void setZtAdmin(ZtAdmin ztAdmin) {
		this.ztAdmin = ztAdmin;
	}
	@JsonIgnore
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	

}